package org.geometerplus.android.fbreader;

import org.geometerplus.fbreader.fbreader.FBReaderApp;
import org.geometerplus.zlibrary.text.model.ZLTextModel;
import org.geometerplus.zlibrary.text.view.ZLTextView;

import com.shwread.android.qysw.activity.ReadingBookActivity;


public class PopupWindowSettingAction
        extends
        FBAndroidAction
{
	public PopupWindowSettingAction(ReadingBookActivity baseActivity, FBReaderApp fbreader) {
		super(baseActivity, fbreader);
	}
	
	public boolean isVisible() {
		ZLTextModel localZLTextModel = ((ZLTextView) this.Reader.getCurrentView()).getModel();
		return (localZLTextModel != null) && (localZLTextModel.getParagraphsNumber() != 0);
	}
	
	@Override
	protected void run(Object... params) {
		//#debug
		base.tina.core.log.LogPrinter.d(null, "=========================run  setting action==");
		BaseActivity.openOptionsMenu();
	}
}
